package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type AnchorIncome struct {
	Id           int       `json:"id" gorm:"primaryKey;autoIncrement"`
	Anchorid     int       `json:"anchorid"` //int(10) DEFAULT NULL COMMENT '主播id',
	Income       int       `json:"income"`   //int(10) DEFAULT '0' COMMENT '当日收入钻石',
	Date         time.Time `json:"date"`     //date DEFAULT NULL COMMENT '日期 2020-02-02',
	LiveId       int64     `json:"live_id"`
	EagleDiamond int       `json:"eagle_diamond"` //int(10) DEFAULT '0' COMMENT '当日收入鹰钻',
}

func (AnchorIncome) TableName() string {
	return fmt.Sprintf("%sanchor_income", models.Prefix)
}
